import React from "react";
export default function (props) {
    return (
        <div>
            <label>{props.children}</label>
            <input
                type="radio"
                name={props.name}
                value="男"
                checked={props.value == "男" ? true : false}
                onChange={props.onChange}
            />
            <label>男</label>
            <input
                type="radio"
                name={props.name}
                value="女"
                checked={props.value == "女" ? true : false}
                onChange={props.onChange}
            />
            <label>女</label>
        </div>
    );
}
